#ifndef PROTOCOLMESSAGE_H
#define PROTOCOLMESSAGE_H

#include <QString>
#include <QHash>

class ProtocolMessage
{
public:
    ProtocolMessage(int category, QHash<QString, QString> data);
    ProtocolMessage(QString msg);
    ProtocolMessage();

public:
    enum types{ILLEGAL = 0, VALIDATA = 1, COMMAND = 2};

    QString toMessage();
    int category;
    QHash<QString, QString> data;

private:
     QString encryptMessage(QString msg);
     QString decryptMessage(QString msg);

};


#endif // PROTOCOLMESSAGE_H
